package com.artwork.mapper;

import com.artwork.model.User;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    List<User> getList();

    List<User> getSonUser(int id);

    User getUserByPhone(String phone);

    User getUserByCode(String code);
}